﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CosiNet.CosmosPlugs
{
    public static class Maths
    {
        public static int Pow(int num, int power)
        {
            int toret = num;
            if (power == 0)
                return 1;
            else
            {
                for (int i = 0; i < (power - 1); i++)
                {
                    toret = toret * num;
                }
                return toret;
            }
        }
    }
}
